package org.easyx.ui.controller;

import javax.servlet.http.HttpServletRequest;

import org.easyx.ui.base.SessionUser;
import org.easyx.ui.util.SessionKit;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 基于Layui的后台管理主界面
 * 
 * @author xiaojl
 *
 */
@Controller
@RequestMapping("/layui")
public class LayuiAdminController{
	
	@RequestMapping("/index")
	public String index(HttpServletRequest request){
		SessionUser su = SessionKit.getSessionUser(request);
		su.setResources(null);
		request.setAttribute("su", su);
		return "index";
	}
	
	@RequestMapping("/foundIcons")
	public String foundIcons(){
		return "foundIcons";
	}
	
}
